import service from '../../utils/request'
//注册
export function registerUser(payload={}){
    return service.post('/api/l-user',payload)
}
//获取用户数据
export function getUserList(payload={}){
    return service.get('/api/l-user',{params:payload})
}
//------------------------工作台---------------------------------
//获取折线图数据
export function getLineList(payload={}){
    return service.get('/api/l-line',{params:payload})
}
//请求工作台表格数据
export function getList(payload={}){
    return service.get('/api/l-list',{params:payload})
}
//请求工作台待处理卡片
export function getWorkCardList(payload={}){
    return service.get('/api/l-workCard',{params:payload})
}
//-------------------------待处理签约-----------------------------
//请求待处理签约数据
export function getSetPendingList(payload={}){
    return service.get('/api/l-setPendingList',{params:payload})
}
//编辑签约信息
export function getSignEdit(payload={}){
    var {id,...data} = payload
    return service.patch('/api/l-setPendingList/'+id,data)
}
//--------------------------签约记录-----------------------------
//请求签约记录数据
export function getSignRecordList(payload={}){
    return service.get('/api/l-signRecordList',{params:payload})
}
//编辑签约记录信息
export function getSignRecordEdit(payload={}){
    var {id,...data} = payload
    return service.patch('/api/l-signRecordList/'+id,data)
}
//--------------------------待处理服务------------------------
//请求待处理服务数据
export function getServerList(payload={}){
    return service.get('/api/l-serverList',{params:payload})
}
//编辑签约记录信息
export function setServerList(payload={}){
    var {id,...data} = payload
    return service.patch('/api/l-serverList/'+id,data)
}
//添加签约记录信息
export function addServerList(payload={}){
    return service.post('/api/l-serverList',payload)
}